home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / AppleScript / Development Tools / Sample Code / MenuScripter / Sources / MSScript.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-25  |  667 b   |  37 lines  |  [TEXT/MPS ]

  1. /*
  2.     MSScript.h
  3.     
  4.     Version 1.0d6
  5.     
  6.     Copyright © SRL Data 1992, 1993
  7.     
  8.     All rights reserved.
  9.     
  10.     Produced by : SRL Data
  11.     Originally Developed for UK.DTS
  12. */
  13.  
  14. #ifndef __MSSCRIPT__
  15. #define __MSSCRIPT__
  16.  
  17. #include <Types.h>
  18.  
  19. #include "MSGlobals.h"
  20.  
  21. pascal OSErr InitEditorScripting(void);
  22.  
  23. pascal OSErr CloseEditorScripting(void);
  24.  
  25. pascal OSErr CompileDocument(DPtr theDoc);
  26.  
  27. pascal OSErr ExecuteDocument(DPtr theDoc);
  28.  
  29. pascal OSErr ScriptForMenuExists(short theMenu, short theItem, Boolean *exists);
  30.  
  31. pascal OSErr ExecuteScriptForMenu(short theMenu, short theItem);
  32.  
  33. pascal OSErr EditMenuScript(short theMenu, short theItem);
  34.  
  35. pascal short GetScriptActiveItem(void);
  36.  
  37. #endif